<template>
    <bList :instance="pList" @about="(data) => pList.info(data.id)"></bList>
</template>

<script setup lang="ts">
import { NurseList } from "@b/index/nursing_appointment";
import bList from "@m/components/public/b_list.vue";
import { useRouter } from "vue-router";
/* import-and-register */

const pList = new NurseList();

const router = useRouter();
/* const-and-register */

pList.info = async (id: number) => {
    if (!id) return;
    router.push(`/nursing_appointment/info/today?id=${id}`)
};
/* event-and-register */
</script>